package com.hastane.islems;

import java.util.ArrayList;
import java.util.List;

import com.hastane.obj.AbsObject;
import com.hastane.obj.Hasta;

public class HastaIslemleri extends Islemler {
	static List hastaLists = new ArrayList<>();

	public void detayGorunule(AbsObject birey) throws Exception {
		Hasta hasta = (Hasta) birey;
		System.out.println(hasta.getId());
		System.out.println(hasta.getIsim());
		System.out.println(hasta.getYas());
		System.out.println(hasta.getCinsiyet());
		System.out.println(hasta.getHastalik());
		System.out.println(hasta.getTarih());
	}

	@Override
	List<AbsObject> getList() {
		return hastaLists;
	}
}
